package cn.guet.tourism.base;

import java.util.List;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import com.baomidou.mybatisplus.service.IService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

/**
 * 基础服务实现
 *
 * @param <M>
 * @param <T>
 * @see ServiceImpl
 * @see IService
 * @author SAGITTAR
 */
public class BaseServiceImpl<M extends IBaseMapper<T>, T extends AbstractModel<T>> extends ServiceImpl<M, T>
		implements IBaseService<T> {

	protected final Logger logger = LogManager.getLogger(getClass());

	@Override
	public List<T> selectAll() {
		logger.info("selectAll");
		return baseMapper.selectList(null);
	}
}
